import request from '@/utils/request'

export function getMissionList(query) {
  return request({
    url: '/foundation/mission/getList',
    method: 'post',
    data: query
  })
}
export function getMissionUsableList(data) {
  return request({
    url: '/foundation/mission/getUsableList',
    method: 'post',
    data: data
  })
}


export function getMissionDetail(id) {
  return request({
    url: '/foundation/mission/getDetail',
    method: 'post',
    data: id
  })
}

export function saveMission(id) {
  return request({
    url: '/foundation/mission/save',
    method: 'post',
    data: id
  })
}

export function removeMissionByID(id) {
  return request({
    url: '/foundation/mission/remove',
    method: 'post',
    data: id
  })
}

export function changeStatusByMissionID(formdata) {
  return request({
    url: '/foundation/mission/change-status',
    method: 'post',
    data: formdata
  })
}

export function getMissionAvabile(query) {
  return request({
    url: '/foundation/mission/getAvailable',
    method: 'post',
    data: query
  })
}

